package com.fy56.platform.logistics.service.wx;

import com.fy56.platform.logistics.common.ResultModel;
import com.fy56.platform.logistics.model.Vip;
import com.fy56.platform.logistics.model.VipAppId;
import com.fy56.platform.logistics.model.VipOpenidRelate;

import java.util.ArrayList;
import java.util.List;
import java.util.Map;

/**
 * VIP用户Service接口
 * Created by li on 2018-01-29.
 */
public interface IVipService extends IBaseSlaveService<Vip> {

    Vip selectVipOpenidByMobile(String mobile);

    ResultModel updateFormIdsByMobile(Vip entity);

    List<Vip> select(Vip entity);

    Vip selectByOpenId(String openid);


    ResultModel updatePassByMobile(Vip entity);

    boolean existByMobile(String mobile);

    boolean existByVip(VipOpenidRelate entity);

    ResultModel saveVipOpenid(VipOpenidRelate entity);


    ResultModel saveVipAppId(VipAppId entity);
    ResultModel updateVipAppId(VipAppId entity) ;

    ResultModel removeOpenid(VipOpenidRelate entity);

    Vip getVipById(Long id);

    VipAppId getVipAppIdById(VipAppId vipAppId);

    ResultModel updateAuditStatus(Vip entity);

    ResultModel batchAuditStatusPass(ArrayList<Vip> list);

    List<VipOpenidRelate> selectVipOpenidRelate(VipOpenidRelate vipOpenidRelate);

    ResultModel updateVipOpenidRelate(VipOpenidRelate entity);
    ResultModel updateDefaultPlaceOfLoading(Vip entity);
}
